package com.antler.smt.portal.mapper;

import com.antler.smt.response.portal.GetCashCouponResp;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 采购商代金券映射
 *
 * @author zhangyi
 * @date 2018-5-8 10:29:53
 */
@Repository
public interface PurchaserCashCouponInfoMapper {

    /**
     * 获取当前会员代金券列表
     *
     * @param memberId
     * @return
     */
    List<GetCashCouponResp> getMemberCashCouponList(Long memberId);

    /**
     * 获取该会员下所有有效的代金券列表
     *
     * @param memberId
     * @return
     */
    List<GetCashCouponResp> getEffectiveCashCouponList(Long memberId);

    /**
     * 获取该会员下所有无效的代金券列表
     *
     * @param memberId
     * @return
     */
    List<GetCashCouponResp> getLoseEfficacyCashCouponList(Long memberId);
}